div {
  box-sizing: border-box;
}

.font12 {
  font-size: 12px !important;
}

.fw600 {
  font-weight: 600 !important;
}

.tar {
  text-align: right;
}

::v-deep.custom {
  .el-textarea__inner {
    resize: none;
  }
}

.none-event {
  width: 1088px;
  border: 1px solid #ddd;
  color: #ddd;
  border-top: none;
}

.btn-common {
  padding: 0;
  width: 24px;
  height: 24px;
}

.conditions-text {
  font-weight: 400;
  font-size: 13px;
  color: #303030;
}

.small-input {
  ::v-deep.el-input__inner {
    height: 24px;
    line-height: 24px;

    @extend .conditions-text;
  }
}

.meduim-input {
  ::v-deep.el-input__inner {
    height: 32px;
    line-height: 32px;

    @extend .conditions-text;
  }

  &.active {
    ::v-deep.el-input__inner {
      color: #c0c4cc;
    }
  }
}

.add-edit-dialog {
  ::v-deep .el-dialog__header {
    border-bottom: 1px solid #d7d7d7;
  }

  ::v-deep .el-dialog {
    margin-top: 1vh !important;
  }

  ::v-deep .el-dialog__body {
    padding: 30px 20px 0;
  }

  .choice-text-btn {
    font-size: 14px;
    color: #0076ff;
    cursor: pointer;
  }

  .dialog-main {
    width: 100%;
    height: 52vh;
    overflow-y: scroll;
    //隐藏滚动条
    &::-webkit-scrollbar {
      display: none;
    }

    &.active {
      height: 46vh;
    }
  }

  .table-tit {
    font-weight: 600;
    color: #2c2c34;
    background-color: #e9edf0;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    border: 1px solid #ddd;
    text-align: left;
    padding-left: 16px;

    &:nth-child(n + 2) {
      border-left: none;
    }
  }

  .demo-box {
    height: auto;

    .demo-name {
      border: 1px solid #ddd;
      border-top: none;
      padding-left: 16px;
    }

    .conditions {
      position: relative;
      padding: 30px 0 60px 40px;
      border: 1px solid #ddd;
      border-left: none;
      border-top: none;
    }

    .conditions-btns {
      position: absolute;
      right: 16px;
      bottom: 16px;
    }

    .level {
      display: flex;
      justify-content: center;
      align-items: center;
      border: 1px solid #ddd;
      border-left: none;
      border-top: none;
    }

    .ways-box {
      display: flex;
      flex-direction: column;
      height: auto;
    }

    .ways {
      display: flex;
      flex: 1;
      flex-direction: column;
      border: 1px solid #ddd;
      border-left: none;
      border-top: none;

      .ways-item {
        position: relative;
        width: 100%;
        flex: 1;

        &:nth-child(2) {
          border-top: 1px solid #ddd;
        }

        .ways-btns {
          position: absolute;
          bottom: 10px;
          right: 10px;
        }
      }
    }

    .content-box {
      display: flex;
      flex-direction: column;
      height: auto;

      .contents {
        display: flex;
        flex-direction: column;
        flex: 1;
        border: 1px solid #ddd;
        border-left: none;
        border-top: none;

        .contents-item {
          width: 100%;
          flex: 1;

          &:nth-child(2) {
            border-top: 1px solid #ddd;
          }
        }
      }
    }
  }
}
